﻿@model FoodBank.Web.ViewModels.RegisterViewModel
@{
    ViewBag.Title = @AccountResources.Register;
    Layout = "~/Views/Shared/_Layout.cshtml";
}
@section ScriptSection
{
    <script src="@Url.Content("~/Scripts/jquery.password-strenght.js")" type="text/javascript"></script>
    <script type="text/javascript">
        localizedMessages["veryweakpass"] = "@Html.Raw(AccountResources.VeryWeakPass)";
        localizedMessages["weakpass"] = "@Html.Raw(AccountResources.WeakPass)";
        localizedMessages["mediumpass"] = "@Html.Raw(AccountResources.MediumPass)";
        localizedMessages["goodpass"] = "@Html.Raw(AccountResources.GoodPass)";
        localizedMessages["greatpass"] = "@Html.Raw(AccountResources.GreatPass)";
        localizedMessages["username"] = "@Html.Raw(AccountResources.UserName)";
        localizedMessages["password"] = "@Html.Raw(AccountResources.Password)";
        localizedMessages["confirmpassword"] = "@Html.Raw(AccountResources.ConfirmPassword)";
        localizedMessages["firstname"] = "@Html.Raw(@AccountResources.FirstName)";
        localizedMessages["lastname"] = "@Html.Raw(AccountResources.LastName)";
        localizedMessages["email"] = "@Html.Raw(AccountResources.Email)";

        $(function () {
            $('#user-panel').remove();
            PasswordStrength.watch('#Password');
        });
    </script>
}
@using (Html.BeginForm())
{
    @Html.AntiForgeryToken()
    <div>
        <fieldset id="register-fieldset">
            <legend>@AccountResources.Register</legend>
            <div>
                @Html.TextBoxFor(e => e.UserName)
            </div>
            <div>
                @Html.TextBoxFor(e => e.FirstName)
            </div>
            <div>
                @Html.TextBoxFor(e => e.LastName)
            </div>
            <div>
                @Html.TextBoxFor(e => e.Email)
            </div>
            <br />
            <div>
                @Html.PasswordFor(e => e.Password)
            </div>
            <div>
                @Html.PasswordFor(e => e.ConfirmPassword)
            </div>
            <br />
            <div class="btn-pane">
                <input type="submit" value="@GlobalResources.Save" class="float-left btn btn-white" />
            </div>
        </fieldset>
    </div>
}
